package com.dctp.common.vo;

import java.io.Serializable;
import java.math.BigDecimal;

public class SimpleTicker implements Serializable {

    private String symbol;            // 合约代码，比如 GC00Y 或 BTCUSDT
    private BigDecimal last_price = BigDecimal.ZERO;     // 最新成交价，币安 c，东方财富 p
    private BigDecimal price_change = BigDecimal.ZERO;   // 涨跌额，币安 p - x，东方财富 zde
    private BigDecimal price_change_percent = BigDecimal.ZERO; // 涨跌幅%，币安 P，东方财富 zdf


    public SimpleTicker(String symbol, BigDecimal lastPrice, BigDecimal priceChange, BigDecimal priceChangePercent) {
        this.symbol = symbol;
        this.last_price = lastPrice;
        this.price_change = priceChange;
        this.price_change_percent = priceChangePercent;
    }

    public String getSymbol() {
        return symbol;
    }

    public void setSymbol(String symbol) {
        this.symbol = symbol;
    }

    public BigDecimal getLast_price() {
        return last_price;
    }

    public void setLast_price(BigDecimal last_price) {
        this.last_price = last_price;
    }

    public BigDecimal getPrice_change() {
        return price_change;
    }

    public void setPrice_change(BigDecimal price_change) {
        this.price_change = price_change;
    }

    public BigDecimal getPrice_change_percent() {
        return price_change_percent;
    }

    public void setPrice_change_percent(BigDecimal price_change_percent) {
        this.price_change_percent = price_change_percent;
    }
}
